package com.yeyks.common.appcommon.param.account;

import com.baomidou.mybatisplus.annotation.TableField;
import com.yeyks.common.appcommon.result.CommonAuthHeader;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author: dagny
 * @date: 2019/12/10 0010 15:17
 */
@Data
@ApiModel(description = "添加运营商输入参数")
public class AppAddBusinessParam extends CommonAuthHeader implements Serializable {
    private static final long serialVersionUID = -3582638481942805445L;

    @ApiModelProperty(value = "账号名称")
    @NotBlank(message = "账号名称不能为空")
    private String username;

    @ApiModelProperty(value = "密码（MD5）")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "重复密码（MD5）")
    @NotBlank(message = "确认密码不能为空")
    private String confirmPwd;

    @ApiModelProperty(value = "管理员名称")
    @NotBlank(message = "管理员名称不能为空")
    private String name;

    @TableField("手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "区域，小数点隔开； 例如：北京.北京市.西城区")
    private String area;

    @ApiModelProperty(value = "省份代码")
    @NotBlank(message = "省份代码Code不能为空")
    private String provinceCode;

    @ApiModelProperty(value = "市代码")
    @NotBlank(message = "市代码Code不能为空")
    private String cityCode;

    @ApiModelProperty(value = "区县代码")
    @NotBlank(message = "区县代码Code不能为空")
    private String countryCode;

    @ApiModelProperty(value = "地址详情")
    private String addressDetail;
}
